# def factorial(n):
#     if n == 0:
#         return 1
#     ret = 1
#     while n!=0:
#         ret *= n
#         n-=1
#     return ret
# 
# 
# def zero_at_the_end(n):
#     cnt=0
#     while n%10 == 0:
#         n //= 10
#         cnt+=1
#     return cnt
# 
# for i in range(1001):
#     print(i, zero_at_the_end(factorial(i)))
# 
# i = 200000
# print(i, zero_at_the_end(factorial(i)))

import math
print(math.factorial(1000))
